Repository navigation
Read project settings only from the configuration file - #5
Merged
Merged
Conversation
A setting that concerns the behavior of the project now comes only from skernel.json or skernel.json.dist, and a setting the file leaves out takes its default. The command-line options for those settings are gone: --php on every command, --watch on run, and --phar, --dev, --output, --composer, and --runtime on package. Options describe only the invocation: the global --working-dir, the directory and --composer of new, and the arguments after run --. The file gains a top-level composer, used by build, run, and package in place of package.composer, and a run section: watch, false by default, and watch-files, the name patterns of the watched files, by default *.php, .env, .env.*, composer.json, and composer.lock. A composer value with a / resolves against the project root; one without is looked up in PATH. package leaves the configuration files out of the staged copy. The release workflow and the binary check write the package path into a skernel.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wheakerd
deleted the
read-project-settings-from-the-configuration-file
branch
November 12, 2026 06:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Settings that describe the project are now read only from
skernel.jsonorskernel.json.dist, with their defaults when absent, and no longer have command-line options:--php,run --watch, andpackage's--phar,--dev,--output,--composer, and--runtimeare removed. What describes one invocation stays on the command line: the working directory, the directory and Composer ofnew, and the arguments passed to the application. A top-levelcomposersetting servesbuild,run, andpackageand replacespackage.composer;run.watchandrun.watch-filesdecide whether and whatrunwatches, and the default watched files now includecomposer.json.packageleaves the configuration files out of the packaged application. The release workflow, the binary check, the schema, and both READMEs follow.Validation
composer validate --strict,composer test(190 tests), andcomposer format:checkpass. From source with a real Composer:buildfromskernel.json, a watchedrunthat restarted after acomposer.jsonchange, andpackagewriting a PHAR from the configured output. The release workflow and the binary check run on this pull request.🤖 Generated with Claude Code